//
//  NMeHeadCell.m
//  News
//
//  Created by zhangtao on 2018/10/9.
//  Copyright © 2018年 zt.td. All rights reserved.
//

#import "NMeHeadCell.h"

@implementation NMeHeadCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _headImageV.layer.borderColor = [UIColor whiteColor].CGColor;
    _headImageV.layer.borderWidth = 2;
    _headImageV.layer.cornerRadius = 30;
    _headImageV.layer.masksToBounds = YES;
}
- (IBAction)click:(UIButton *)sender {
    NSInteger tag = sender.tag;
    
    if (self.meHeadCellCallBack) {
        self.meHeadCellCallBack(tag);
    }
}

- (void)bindData
{
    NSummaryModel *model = [NSummaryModel shareInstance];
    self.nameLab.text = model.NickName;
    self.careNumLab.text = [NSString stringWithFormat:@"%@",model.FollowNum];
    self.shoucangNumLab.text = [NSString stringWithFormat:@"%@",model.FavoriteNum];
    self.shareNumLab.text = [NSString stringWithFormat:@"%@",model.PublishNum];
    [self.headImageV sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",ImageUrl,model.HeadPic]] placeholderImage:[UIImage imageNamed:@"img"]];
}

@end
